// 统一请求路径前缀在libs/axios.js中修改
import {
  getRequest,
  postRequest,
  formRequest,
  putRequest,
  deleteRequest,
  uploadFileRequest
} from "@/libs/axios";

//光缆

export const getFibreInfo = params => {
  return getRequest("/bss/fibre/fibre/info", params);
};

export const addFibre = params => {
  return postRequest("/bss/fibre/fibre/save", params);
};

export const editFibre = params => {
  return postRequest("/bss/fibre/fibre/update", params);
};

export const deleteFibre = params => {
  return postRequest("/bss/fibre/fibre/delete", params);
};

export const getFibreList = params => {
  return getRequest("/bss/fibre/fibre/list", params);
};

//榄段

export const getCableInfo = params => {
  return getRequest("/bss/fibre/cable/info", params);
};

export const getCablePoints = params => {
  return getRequest("/bss/fibre/cable/fibres_points", params);
};

export const addCable = params => {
  return postRequest("/bss/fibre/cable/save", params);
};

export const editCable = params => {
  return postRequest("/bss/fibre/cable/update", params);
};

export const deleteCable = params => {
  return postRequest("/bss/fibre/cable/delete", params);
};
//榄段设施

export const getPointInfo = params => {
  return getRequest("/bss/fibre/point/info", params);
};

export const addPoint = params => {
  return postRequest("/bss/fibre/point/save", params);
};

export const editPoint = params => {
  return postRequest("/bss/fibre/point/update", params);
};

export const deletePoint = params => {
  return postRequest("/bss/fibre/point/delete", params);
};
